package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRepairOrderItem;
import com.appkubes.mall.core.po.FintechRepairOrderItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRepairOrderItemMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairOrderItemSqlProvider.class, method="countByExample")
    long countByExample(FintechRepairOrderItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRepairOrderItemSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRepairOrderItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_repair_order_item",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_repair_order_item (id, order_id, ",
        "user_id, item_name, ",
        "item_code, seq_no, ",
        "price, create_time, ",
        "update_time)",
        "values (#{id,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, ",
        "#{userId,jdbcType=VARCHAR}, #{itemName,jdbcType=VARCHAR}, ",
        "#{itemCode,jdbcType=VARCHAR}, #{seqNo,jdbcType=INTEGER}, ",
        "#{price,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(FintechRepairOrderItem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRepairOrderItemSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRepairOrderItem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairOrderItemSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="item_name", property="itemName", jdbcType=JdbcType.VARCHAR),
        @Result(column="item_code", property="itemCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="seq_no", property="seqNo", jdbcType=JdbcType.INTEGER),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRepairOrderItem> selectByExampleWithRowbounds(FintechRepairOrderItemExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairOrderItemSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="item_name", property="itemName", jdbcType=JdbcType.VARCHAR),
        @Result(column="item_code", property="itemCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="seq_no", property="seqNo", jdbcType=JdbcType.INTEGER),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRepairOrderItem> selectByExample(FintechRepairOrderItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "id, order_id, user_id, item_name, item_code, seq_no, price, create_time, update_time",
        "from fintech_repair_order_item",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="item_name", property="itemName", jdbcType=JdbcType.VARCHAR),
        @Result(column="item_code", property="itemCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="seq_no", property="seqNo", jdbcType=JdbcType.INTEGER),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechRepairOrderItem selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairOrderItemSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRepairOrderItem record, @Param("example") FintechRepairOrderItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairOrderItemSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRepairOrderItem record, @Param("example") FintechRepairOrderItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairOrderItemSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRepairOrderItem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_item
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_repair_order_item",
        "set order_id = #{orderId,jdbcType=VARCHAR},",
          "user_id = #{userId,jdbcType=VARCHAR},",
          "item_name = #{itemName,jdbcType=VARCHAR},",
          "item_code = #{itemCode,jdbcType=VARCHAR},",
          "seq_no = #{seqNo,jdbcType=INTEGER},",
          "price = #{price,jdbcType=DECIMAL},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRepairOrderItem record);
}